<template>
    <el-switch
    v-model="open"
    active-color="#13ce66"
    inactive-color="#ff4949"
    active-value="100"
    inactive-value="0"
    @change="(e) => $emit('change', e)">
  </el-switch>
</template>
<script>
export default {
    // eslint-disable-next-line vue/multi-word-component-names
    name: 'Select',
    model: {
        prop: 'close',
        event: 'change'
    },
    props: {
        close: {
            type: [String,Boolean],
            default:false
        }
    },
    data() { 
        return {
            open: false
        }
    }
}
</script>